package com.lx.constant;

import com.lx.annotation.Note;

public interface DefaultBaseConstant {

    @Note("请求信息")
    String REQUEST_INFO = "REQUEST_INFO";
    @Note("接口参数加解密过滤器")
    String API_FILTER = "API_FILTER";
    @Note("用户信息")
    String USER_INFO = "USER_INFO";
    @Note("企业ID")
    String FIRM_ID = "firmId";
    @Note("第三方接口appid")
    String API_APPID = "api_appid";
    @Note("自定义数据源链接")
    String CUSTOM_DB_INFO = "CUSTOM_DB_INFO";
    @Note("启动环境类型")
    String SPRING_PROFILES_ACTIVE = "spring.profiles.active";
    @Note("启动环境名称")
    String SPRING_APPLICATION_NAME ="spring.application.name";
    @Note("数据库自定义where条件")
    String DATA_PERMISSION = "DATA_PERMISSION";

    @Note("默认排除的路径")
    String DEFAULT_SERVER_EXCLUDE_URL = "^((/swagger-resources.*)|(/v3/api-docs.*))$";
    @Note(" 请求头认证字符串")
    String AUTHORIZATION = "Authorization";
    @Note(" 系统接口请求头认证字符串")
    String SYS_AUTHORIZATION = "sysAuthorization";
    @Note(" 系统接口请求头认证字符串时间戳")
    String SYS_AUTHORIZATION_TIMESTAMP = "sysAuthorizationTimestamp";
    @Note(" 系统接口请求头认证字符串随机字符")
    String SYS_AUTHORIZATION_NONCE = "sysAuthorizationNonce";
    @Note(" 系统接口请求头认证字符串随机字符")
    String SYS_AUTHORIZATION_DATA = "sysAuthorizationData";

    @Note("是否开启动态数据源")
    String DB_ENABLE = "server.db.enable";

    @Note("是否开启接口过滤器(进行允许跨域 和 接口入参解密)")
    String SECURITY_FILTER_ENABLE = "server.web.filter.enable";

    @Note("是否开启定时任务")
    String LXJOB_ENABLE="server.job.enable";

    @Note("超级管理员权限")
    String ADMIN_PERMISSIONS ="*";

    @Note("超级管理员用户")
    String ADMIN_USER_TYPE ="admin";

    public interface Enabled{
        String YES = "1";
        String NO = "0";
    }
}
